﻿using sMES_Base.service;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using sMES_Base;
using CUS_Product_QCList_Get_Process.Modules;


namespace CUS_Product_QCList_Get_Process
{
    /// <summary>
	/// 服務[CUS_Product_QCList_Get_Process]
    /// <auth>gracecai</auth><time>2018/12/4 下午 03:40:57</time>
    /// <description></description>
    /// <list>
    ///     <modify>
    ///         <auth></auth><mantis></mantis><time></time>
    ///         <description></description>
    ///     </modify>
    /// </list>
    /// </summary>
    public class CUS_Product_QCList_Get_Process : BaseService
    {
        public CUS_Product_QCList_Get_Process(ServiceInfo _ServiceInfo) : base(_ServiceInfo)
        {
        }

        public override ServiceResponse ExecuteImplement(ServiceRequest ServiceRequest, ServiceResponse ServiceResponse)
        {
            RequestContent content = ServiceRequest.GetContent<RequestContent>();
            CUS_Product_QCList_Get_Process_utility utility = GetUtilities<CUS_Product_QCList_Get_Process_utility>();
            if (string.IsNullOrEmpty(content.qclistno))
                ServiceResponse.Content = utility.initProductQCList(content);
            else
                ServiceResponse.Content = utility.initProductQCDetail(content);
            return ServiceResponse;
        }
    }
}
